/*
 * Copyright (c) [2022] [王鹏欢]
 *    [DataStructure] is licensed under Mulan PSL v2.
 *    You can use this software according to the terms and conditions of the Mulan PSL v2.
 *    You may obtain a copy of Mulan PSL v2 at:
 *             http://license.coscl.org.cn/MulanPSL2
 *    THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *    See the Mulan PSL v2 for more details.
 */

package com.huan.sequence;

import java.util.Scanner;

public class StudentNode {
     int number;  //学号
     String name;  //姓名
     String sex;    //性别
     double english;   //大学英语成绩
     double math;     //高等数学成绩

    public StudentNode()
    {      //无参数时的构造函数
        this(0, null, null, 0, 0);
    }

    public StudentNode(int number, String name, String sex, double english, double math)
    {
        this.number  = number;
        this.name    = name;
        this.sex     = sex;
        this.english = english;
        this.math    = math;
    }

    public StudentNode(Scanner sc)
    {
        this(sc.nextInt(), sc.next(), sc.next(), sc.nextDouble(), sc.nextDouble());
    }
}
 